package com.test.javafaq_faq.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.test.javafaq_commons.entity.Answer;
import com.test.javafaq_faq.vo.AnswerVo;


import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author test.com
 * @since 2025-04-11
 */
public interface IAnswerService extends IService<Answer> {

    //采纳问题的方法
    boolean accept(Integer answerId);

    //获取指定问题的答案
    List<Answer> getAnswersByQuestionId(Integer questionId);


    //教师回答问题
    Answer saveAnswer(AnswerVo answerVo, String username);

}
